
enum gamer {user, cpu};
enum motion {CUR, UP, DOWN, LEFT, RIGHT};
enum Key {KeyUp, KeyDown, KeyRight, KeyLeft, KeyEnter, KeySpace, KeyTab, KeyUnknown};
enum unit_state {dead, wound, save};

struct ShipList
{
	unsigned char name[10];
	unsigned char part;
	unsigned int amount;
	unsigned int build;
};

struct coordinate
{
	short x;
	short y;
};

struct dimension
{
	short w;
	short h;
};

struct obj_info
{
	coordinate position;
	dimension size;
	coordinate index;
};

struct field
{
	unsigned char ** board;
	//unsigned char ** ship;
	//unsigned char ** shot;
	//unsigned char ** shield;
};

struct colors
{
	short edge;
	short field;
	short sight;
	short ship;
	short shot;
	short dead_ship;
	short info;
	short warning;
	short msg;
	short def;
};

struct unit
{
	size_t id;
	short x;
	short y;
	unit_state state;
	
};

struct union_dat
{
	unit ship; 
	motion run;
	
};


